package com.example.adms.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adms.role.entity.Permission;
import com.example.adms.role.entity.RolePermission;
import com.example.adms.role.vo.PermissionVo;

import java.util.List;
import java.util.Map;

public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    //根据roleId删除
    void deleteByRoleId(Map<String, Object> map1);

    //批量插入
    void insertPerms(Map<String, Object> map1);

    //根据roleId查权限列表
    List<PermissionVo> selectPermListByRoleId(Map<String, Object> map);

    // 根据用户id查权限列表
    List<String> selectPermsByUserId(int id);
}
